#ifndef __XEventDispatcher__h__included__
#define __XEventDispatcher__h__included__

#include "gui/EventListener.h"

#include <X11/Xlib.h>

using namespace neiderra::core;

namespace neiderra {
	namespace gui {
			
		class XEventListener: public EventListener {
		public:
			XEventListener(Core* core, Display*);
			virtual ~XEventListener();
				
			virtual int listen();
		protected:
			Display* _display;
		};
		
		// translate Keysym into VirtualKeyCode
		unsigned KeySymToKeyCode(KeySym);
	}
}

#endif
